/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.given.designpatterns.structural.facade;

/**
 *
 * @author bassoncj
 */
public class Facade {
    ClassFactory classFactory = ClassFactory.getInstance();
    Class1 class1 = classFactory.getClass1();
    Class2 class2 = classFactory.getClass2();
    Class3 class3 = classFactory.getClass3();
    public  int cubeX(int x){
        return class1.doSomethingComplicated(x);
    }
    
    public int cubeXTimes2(int x){
        return class2.doAnotherThing(class1, x);
    }
    
    public int xToSixthPowerTimes2(int x){
        return class3.doMoreStuff(class1, class2, x);
    }
            
}
